﻿/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace DaveSexton.DocProject.Configuration
{
	[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
	public sealed class DependencyElementCollection : ConfigurationElementCollection
	{
		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="DependencyElementCollection" /> class.
		/// </summary>
		public DependencyElementCollection()
		{
		}
		#endregion

		#region Methods
		protected override ConfigurationElement CreateNewElement()
		{
			return new DependencyElement();
		}

		protected override object GetElementKey(ConfigurationElement element)
		{
			return ((DependencyElement) element).Name;
		}
		#endregion
	}
}
